package com.cz.video.common.core.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.cz.video.common.core.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <p>
 * 敏感词过滤表
 * </p>
 *
 * @author 陈智
 * @since 2023-07-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@Schema(title="敏感词过滤表对象", description="敏感词过滤表")
public class SysSensitiveWord extends BaseEntity implements Serializable {


    @TableId(value = "id")
    private Long id;

    @Schema(title = "敏感词内容")
    @TableField("word")
    @NotBlank
    private String word;

    @Schema(title = "敏感词类型",description = "(0:禁止,1:允许)")
    @TableField("type")
    @NotBlank
    private String type;

    @Schema(title = "状态",description = "(1:正常，0:禁用)")
    @TableField("status")
    private String status;

    @Schema(title = "删除标志",description = "（0代表存在 2代表删除）")
    @TableField("del_flag")
    @TableLogic
    private String delFlag;
}
